<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="CRMMain.aspx.cs" Inherits="WIntegrator.Pages.CRMMain" %>

<%@ Register Src="../Controls/CRM/Atomic/CRMEstimates.ascx" TagName="CRMEstimates"
    TagPrefix="uc2" %>
<%@ Register Src="../Controls/CRM/Atomic/CRMSalesOrder.ascx" TagName="CRMSalesOrder"
    TagPrefix="uc3" %>
<%@ Register Src="../Controls/CRM/Atomic/CRMDocuments.ascx" TagName="CRMDocuments"
    TagPrefix="uc4" %>

<%@ Register Src="../Controls/CRM/Atomic/CRMNotes.ascx" TagName="CRMNotes" TagPrefix="uc1" %>

<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="cc1" %>
<%@ Register Assembly="RadAjax.Net2" Namespace="Telerik.WebControls" TagPrefix="rad" %>
<%@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %>
<%@ Register Assembly="RadWindow.Net2" Namespace="Telerik.WebControls" TagPrefix="rad" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
    <title>CRM</title>
</head>
<body>
    <form id="form1" runat="server">
        <asp:ScriptManager ID="ScriptManager1" runat="server">
            <Services>
                <asp:ServiceReference Path="~/WebServices/WSSolaraWebService.asmx" />                        
            </Services>        
        </asp:ScriptManager>
        &nbsp;
<!-- **************************************************************************************
 // -->
 
     <script type="text/javascript" language="javascript">
    <!--
    /* 
    Description: Solara UI Javascript Library
    */
   //Global variable
   var current = null;    
   function clearControls()
   {
        document.forms[0].reset();
        //Office
        clearOffice();        
        clearContacts();  
   }
   function clearOffice(){
        var cmbOffice = $find('<%=cmbOffice.ClientID%>');      
        cmbOffice.trackChanges(); 
        cmbOffice.clearItems();
        cmbOffice.set_text("");
        cmbOffice.set_value("");
        cmbOffice.commitChanges();   
        var ctrlAddress = $find('<%=txtOfficeAddress.ClientID%>');
        ctrlAddress.set_value("");                                    
        //Office City                                                 
        var ctrlCity = $find('<%= txtOfficeCity.ClientID%>');
        ctrlCity.set_value("");  
        //Office State                                                                                                         
        var ctrlState = $find('<%= txtOfficeState.ClientID%>');
        ctrlState.set_value(""); 
        //Office ZipCode                                                    
        var ctrlZipCode = $find('<%= txtOfficeZipCode.ClientID%>');
        ctrlZipCode.set_value("");     
        //Phone                                                  
        var ctrlPhone = $find('<%= txtOfficePhone.ClientID%>');
        ctrlPhone.set_value("");      
   }
   function clearContacts(){
        cmbContacts = $find('<%= cmbContact.ClientID%>');        
        cmbContacts.trackChanges(); 
        cmbContacts.clearItems();  
        cmbContacts.set_text("");  
        cmbContacts.set_value("");     
        cmbContacts.commitChanges();                  
   
        //Contact Phone
        var ctrlContactPhone = $find('<%= txtContactPhone.ClientID%>');
        ctrlContactPhone.set_value("");  
        
        //Contact Phone Ext
        var ctrlContactPhoneExt = $find('<%= txtContactPhoneExt.ClientID%>');
        ctrlContactPhoneExt.set_value("");  
        
        //Mobile Phone
        var ctrlContactPhone = $find('<%= txtContactMobile.ClientID%>');
        ctrlContactPhone.set_value("");  
      
        //Email
        var ctrlContactPhone = $find('<%= txtContactEmail.ClientID%>');
        ctrlContactPhone.set_value("");                                             
   }
   //Function that triggers the XMLHTTPRequest
   //When the user click on a row a request is send to collect 
   //the selected company information
   function rowSelected(sender,eventArgs){
        //Clear controls    
        clearControls();    
        var index =eventArgs.getDataKeyValue("ID");   
        document.getElementById("txtCompanyID").setAttribute("value",index);           
        ret = WIntegrator.WebServices.WSSolaraWebService.GetCompany(index, OnComplete, OnTimeOut, OnError);
        return(true);
   }
   //Function called when the XMLHttpRequest returned OK
   //Entry point.
   function OnComplete(response) { 
        //Set global variable
        current=null;
        current= response;
        //Parse data
        ParseCompanyData(response);
        FillOfficeCombo(response);
   }

   //Function used when the XMLHTTPRequest times out
   function OnTimeOut(arg) {
        alert("TimeOut encountered when calling GetCompany." + arg);
   }
   
   //Function used when the XMLHTTPRequest returns with errors.
   function OnError(arg) {
        alert("Error encountered when calling GetCompany." + arg);
   }    
   
   //Parse Company Information
   //Updates company controls
   function ParseCompanyData(response)
   {       
    //Company Name                                                         
    var companyName = (response.CompanyName !=null ) ? response.CompanyName : "";
    var ctrlCompanyName = $find('<%=txtCompanyName.ClientID%>');
    ctrlCompanyName.set_value(companyName);
    
    //Company Address
    var companyAddress =(response.AddressBlock !=null) ? response.AddressBlock:"";
    var ctrlCompanyAddress = $find('<%=txtCompanyAddress.ClientID%>');
    ctrlCompanyAddress.set_value(companyAddress);
    //Company City                                
    var companyCity =  (response.City != null) ? response.City:"";                  
    var ctrlCompanyCity = $find('<%=txtCompanyCity.ClientID%>');
    ctrlCompanyCity.set_value(companyCity);                
    //Company State                
    var companyState = (response.State !=null) ? response.State:""; 
    var ctrlCompanyState = $find('<%=txtCompanyState.ClientID%>');
    ctrlCompanyState.set_value(companyState);
    //Company ZipCode                  
    var companyZipCode = (response.ZipCode !=null) ? response.ZipCode:"";                             
    var ctrlCompanyZipCode = $find('<%=txtCompanyZipCode.ClientID%>');
    ctrlCompanyZipCode.set_value(companyZipCode);               
    //Company Phone
    var companyPhone =(response.Phone !=null) ? response.Phone:"";                                                       
    var ctrlCompanyPhone = $find('<%=txtCompanyPhone.ClientID%>');
    ctrlCompanyPhone.set_value(companyPhone);
    //Company Fax
    var companyFax =(response.Fax !=null) ? response.Fax:"";                                  
    var ctrlCompanyFax = $find('<%=txtCompanyFax.ClientID%>');
    ctrlCompanyFax.set_value(companyFax);                
    //Website
    var webSite =(response.WebSite !=null) ? response.WebSite:"";                                       
    var ctrlWebsite = $find('<%=txtWebsite.ClientID%>');
    ctrlWebsite.set_value(webSite);                
    //Ftpsite
    var ftpSite =(response.FtpSite !=null) ? response.FtpSite:"";                                    
    var ctrlFtpsite = $find('<%=txtFtpsite.ClientID%>');
    ctrlFtpsite.set_value(ftpSite);                
    //Sales Rep
    var salesRep =(response.SalesRep !=null) ? response.SalesRep:"";
    var ctrlSalesRep = $find('<%=txtSalesRep.ClientID%>');
    ctrlSalesRep.set_value(salesRep);      
    //Sales Terms
    var salesTerms =(response.SalesTerms !=null) ? response.SalesTerms:"";                                     
    var ctrlSalesRep = $find('<%=txtSalesTerms.ClientID%>');
    ctrlSalesRep.set_value(salesTerms);                
   }
         
   //Fill Office Combo
   function FillOfficeCombo(response)
   {   
     var cmbOffice = $find('<%=cmbOffice.ClientID%>'); 
     //Indicate that client changes are to be made
     cmbOffice.trackChanges(); 
     cmbOffice.clearItems();     
     cmbOffice.commitChanges(); 
     if (response.Office != null)
     {      
        cmbOffice.trackChanges();                 
         for (x in response.Office)
         {
            var comboItem = new Telerik.Web.UI.RadComboBoxItem();
            comboItem.set_text(response.Office[x].Description);                    
            comboItem.set_value(response.Office[x].ID); 
            //Add the newly create item to the combo
            cmbOffice.get_items().add(comboItem);                                        
         } 
         cmbOffice.commitChanges();       
     }                                                                 
      
   }
          
   //Get the selected office
   //Updates the office information
   function cmbOfficeSelectedIndexChange(sender,args)
   {
        var item = args.get_item();
        for (x in current.Office)
        {
            if (current.Office[x].Description == item.get_text())
            {                            
                //Address
                var address =(current.Office[x].StreetNumber !=null) ? current.Office[x].StreetNumber:"";                                    
                address +=  (current.Office[x].StreetName !=null) ? " " + current.Office[x].StreetName:"";
                address +=  (current.Office[x].StreetType !=null) ? " " + current.Office[x].StreetType:"";
                var ctrlAddress = $find('<%=txtOfficeAddress.ClientID%>');
                ctrlAddress.set_value(address);                                    
                //Office City
                var city =(current.Office[x].City !=null) ? current.Office[x].City:"";                                    
                var ctrlCity = $find('<%= txtOfficeCity.ClientID%>');
                ctrlCity.set_value(city);  
                //Office State                                                     
                var state =(current.Office[x].State !=null) ? current.Office[x].State:"";                                    
                var ctrlState = $find('<%= txtOfficeState.ClientID%>');
                ctrlState.set_value(state); 
                //Office ZipCode 
                var zipCode =(current.Office[x].ZipCode !=null) ? current.Office[x].ZipCode:"";                                    
                var ctrlZipCode = $find('<%= txtOfficeZipCode.ClientID%>');
                ctrlZipCode.set_value(zipCode);     
                //Phone
                var phone =(current.Office[x].Phone !=null) ? current.Office[x].Phone:"";                                    
                var ctrlPhone = $find('<%= txtOfficePhone.ClientID%>');
                ctrlPhone.set_value(phone);    
                
                //Fill Contact Combo                   
                FillContactsCombo(current.Office[x].Contacts);
            }
        }
   }    
   
   //Fills the Contacts Combo
   function FillContactsCombo(param)
   {
        cmbContacts = $find('<%= cmbContact.ClientID%>');
        //Indicate that client changes are to be made 
        cmbContacts.trackChanges(); 
        cmbContacts.clearItems();
                if ( param !=null)
                {                                                                           
                    for(i  in param)
                    {
                        var lastName = param[i].LastName;
                        var firstName = param[i].FirstName;
                        var comboItem = new Telerik.Web.UI.RadComboBoxItem();
                        var ContactName = lastName + "," + firstName;
                        comboItem.set_text(ContactName);                    
                        comboItem.set_value(param[i].ID); 
                        //Add the newly create item to the combo
                        cmbContacts.get_items().add(comboItem);                                                               
                    }                    
                }    
            cmbContacts.commitChanges();    
   }  
   
    //Get the selected contacts
   //Updates the contacts information
   function cmbContactsSelectedIndexChange(sender,args)
   {        
        var item = args.get_item();
        for (x in current.Office)
        {                       
            for ( i in current.Office[x].Contacts)
            {                                
                if (current.Office[x].Contacts[i].ID == item.get_value())
                {                            
                    //Contact Phone
                    var contactPhone =(current.Office[x].Contacts[i].DirectPhone !=null) ? current.Office[x].Contacts[i].DirectPhone:"";                                    
                    var ctrlContactPhone = $find('<%= txtContactPhone.ClientID%>');
                    ctrlContactPhone.set_value(contactPhone);  
                    
                    //Contact Phone Ext
                    var contactPhoneExt =(current.Office[x].Contacts[i].PhoneExt !=null) ? current.Office[x].Contacts[i].PhoneExt:"";                                    
                    var ctrlContactPhoneExt = $find('<%= txtContactPhoneExt.ClientID%>');
                    ctrlContactPhoneExt.set_value(contactPhoneExt);  
                    
                    //Mobile Phone
                    var contactMobile =(current.Office[x].Contacts[i].CellPhone !=null) ? current.Office[x].Contacts[i].CellPhone:"";                                    
                    var ctrlContactPhone = $find('<%= txtContactMobile.ClientID%>');
                    ctrlContactPhone.set_value(contactMobile);  
                  
                    //Email
                    var contactMobile =(current.Office[x].Contacts[i].Email !=null) ? current.Office[x].Contacts[i].Email:"";                                    
                    var ctrlContactPhone = $find('<%= txtContactEmail.ClientID%>');
                    ctrlContactPhone.set_value(contactMobile);                                          
                }
            }
        }            
   }         
   function DeleteRow(){
       var grid = $find('CRMNotes_userControl_RadGrid1_ctl00');
       var firstDataItem = grid.get_masterTableView().get_dataItems()[0];
       alert(grid.get_id());
       alert(firstDataItem);
   }
   
   function menuItemClicked(sender,eventArgs)
   {
        if (eventArgs.get_item().get_text() == "New"){
            //Clear controls
            document.forms[0].reset();   
            eventArgs.set_cancel(true);
        }        
   }
   
    // -->
    </script>
 
 <!--
     **************************************************************************************
// -->                           
        <div id="toolBar">
        <telerik:RadWindowManager ID="RadWindowManager1" runat="server">
        </telerik:RadWindowManager> 
        <table width="100%">
        <tr valign="top">
        <td align="left">
        <!-- Tool Bar // -->
            <telerik:RadMenu ID="RadMenu1" runat="server" 
                             Skin="WebBlue" width="1200px" 
                             OnClientItemClicked = "menuItemClicked"
                             OnItemClick="RadMenu1_ItemClick">        
                <CollapseAnimation Duration="200" Type="OutQuint" />
                <Items>
                    <telerik:RadMenuItem runat="server" Text="New" >
                    </telerik:RadMenuItem>          
                    <telerik:RadMenuItem runat="server" Text="Save">                
                    </telerik:RadMenuItem>              
                    <telerik:RadMenuItem runat="server" Text="Documents">
                        <Items>
                            <telerik:RadMenuItem runat="server" Text="Create Folder">
                            </telerik:RadMenuItem>
                            <telerik:RadMenuItem runat="server" Text="Add document">
                            </telerik:RadMenuItem>
                        </Items>
                    </telerik:RadMenuItem>
                </Items>
            </telerik:RadMenu>
         <!-- End Tool bar // -->            
        </td>            
        <td>
        
        </td>
        </tr>
        </table>
        </div>
        <div id="Main">
                <rad:RadAjaxManager ID="RadAjaxManager1" runat="server">
                    <AjaxSettings>
                        <rad:AjaxSetting AjaxControlID="RadMenu1">
                            <UpdatedControls>
                                <rad:AjaxUpdatedControl ControlID="grdCustomers" LoadingPanelID="RadAjaxLoadingPanel1" />
                            </UpdatedControls>
                        </rad:AjaxSetting>
                        <rad:AjaxSetting AjaxControlID="grdCustomers">
                            <UpdatedControls>
                                <rad:AjaxUpdatedControl ControlID="grdCustomers" LoadingPanelID="RadAjaxLoadingPanel1" />
                                <rad:AjaxUpdatedControl ControlID="RadGrid1" LoadingPanelID="RadAjaxLoadingPanel" />
                            </UpdatedControls>
                        </rad:AjaxSetting>
                        <rad:AjaxSetting AjaxControlID="TabContainer1">
                            <UpdatedControls>
                                <rad:AjaxUpdatedControl ControlID="TabContainer1"  LoadingPanelID="RadAjaxLoadingPanel" />
                            </UpdatedControls>
                        </rad:AjaxSetting>
                    </AjaxSettings>
                </rad:RadAjaxManager>
                <telerik:RadAjaxLoadingPanel id="RadAjaxLoadingPanel1" Runat="server" height="75px"
                    width="75px">
                    <img alt="Loading..." src='<%= RadAjaxLoadingPanel.GetWebResourceUrl(Page, "Telerik.Web.UI.Skins.Default.Ajax.loading.gif") %>'
                        style="border: 0px;" />
                </telerik:RadAjaxLoadingPanel>                                   
           <telerik:RadSplitter ID="RadSplitter2" runat="server" LiveResize="True" Skin="WebBlue" Width="1200px" Orientation="Vertical"  Height="790px" >                             
                    <telerik:RadPane ID="leftPanel" runat="server" width="200px" Scrolling="None">
                      <asp:HiddenField runat="server" ID="txtCompanyID" value="0"/>  
                      <telerik:RadGrid ID="grdCustomers" runat="server" 
                        AllowFilteringByColumn="True" AutoGenerateColumns="False"                 
                        GridLines="None" Skin="WebBlue" OnNeedDataSource="grdCustomers_NeedDataSource">
                        <MasterTableView DataKeyNames="ID" ClientDataKeyNames="ID">
                            <RowIndicatorColumn Visible="False">
                                <HeaderStyle Width="20px" />
                            </RowIndicatorColumn>
                            <ExpandCollapseColumn Resizable="False" Visible="False">
                                <HeaderStyle Width="20px" />
                            </ExpandCollapseColumn>
                            <EditFormSettings>
                                <PopUpSettings ScrollBars="None" />
                            </EditFormSettings>
                            <Columns>
                                <telerik:GridBoundColumn DataField="CompanyName" UniqueName="CompanyName" />                        
                            </Columns>
                        </MasterTableView>               
                        <ClientSettings>   
                            <Selecting AllowRowSelect="True" />                                                         
                            <ClientEvents OnRowSelected="rowSelected"/>
                        </ClientSettings>
                    </telerik:RadGrid>                   
                    </telerik:RadPane>
                    <telerik:RadSplitBar ID="SplitBar1" runat="server" CollapseMode="Both"/>
                    <telerik:RadPane ID="rightPanel" runat="server" Scrolling="none">
                            <telerik:RadSplitter ID="RadSplitter1" runat="server" LiveResize="True" Skin="WebBlue" Width="1000px" Orientation="Horizontal">
                               <telerik:RadPane ID="topContent" runat="server">                               
        <table width="980" border="0">
          <tr>
            <td colspan="5">Customer Information </td>
              <td colspan="1">
              </td>
          </tr>
          <tr>
              <td colspan="6">
                  <hr>
              </td>
          </tr>
            <tr valign="top">
            <td style="width: 180px">Company Name:</td>
            <td width="180"><telerik:RadTextBox ID="txtCompanyName" runat="server" Skin="WebBlue" Width="193px">
                </telerik:RadTextBox></td>
            <td width="194">Job site:</td>
            <td width="194">
            <telerik:RadComboBox ID="cmbOffice" runat="server" Skin="WebBlue"
                         AllowCustomText="true"
                         OnClientSelectedIndexChanged="cmbOfficeSelectedIndexChange"
                         EmptyMessage="Select office ">
                <CollapseAnimation Duration="200" Type="OutQuint" />
            </telerik:RadComboBox>
            </td>
            <td style="width: 198px">Contact:</td>
              <td width="198">
                  <telerik:RadComboBox ID="cmbContact" runat="server" Skin="WebBlue" 
                                       AllowCustomText="true" EmptyMessage="Select contact"
                                       OnClientSelectedIndexChanged="cmbContactsSelectedIndexChange">
                      <CollapseAnimation Duration="200" Type="OutQuint" /> 
                  </telerik:RadComboBox>
              </td>
          </tr>
          <tr valign="top">
            <td style="width: 160px"> Address:</td>
            <td>
                <telerik:RadTextBox ID="txtCompanyAddress" runat="server" Skin="WebBlue" Enabled="true" TextMode="MultiLine" Width="200px">
                </telerik:RadTextBox></td>
            <td>Address:</td>
            <td><telerik:RadTextBox ID="txtOfficeAddress" runat="server" Skin="WebBlue" Enabled="true" TextMode="MultiLine" Width="200px">
            </telerik:RadTextBox></td>
            <td style="width: 198px">Phone:</td>
              <td>
                  <telerik:RadTextBox ID="txtContactPhone" runat="server" Skin="WebBlue">
                  </telerik:RadTextBox></td>
          </tr>
            <tr valign="top">
                <td style="width: 160px">
                    City:</td>
                <td><telerik:RadTextBox ID="txtCompanyCity" runat="server" Skin="WebBlue" Width="193px">
                </telerik:RadTextBox></td>
                <td>
                    City:</td>
                <td><telerik:RadTextBox ID="txtOfficeCity" runat="server" Skin="WebBlue" Width="193px">
                </telerik:RadTextBox></td>
                <td style="width: 198px">
                    Phone Ext:</td>
                <td><telerik:RadTextBox ID="txtContactPhoneExt" runat="server" Skin="WebBlue">
                </telerik:RadTextBox></td>
            </tr>
            <tr valign="top">
                <td style="width: 160px">
                    State:</td>
                <td><telerik:RadTextBox ID="txtCompanyState" runat="server" Skin="WebBlue" Width="42px">
                </telerik:RadTextBox></td>
                <td>
                    State:</td>
                <td><telerik:RadTextBox ID="txtOfficeState" runat="server" Skin="WebBlue" Width="42px">
                </telerik:RadTextBox></td>
                <td style="width: 198px">
                </td>
                <td>
                </td>
            </tr>
            <tr valign="top">
                <td style="width: 160px">
                    ZipCode:</td>
                <td><telerik:RadTextBox ID="txtCompanyZipCode" runat="server" Skin="WebBlue">
                </telerik:RadTextBox></td>
                <td>
                    ZipCode:</td>
                <td><telerik:RadTextBox ID="txtOfficeZipCode" runat="server" Skin="WebBlue">
                </telerik:RadTextBox></td>
                <td style="width: 198px">
                </td>
                <td>
                </td>
            </tr>
          <tr valign="top">
            <td style="width: 160px">Phone:</td>
            <td><telerik:RadTextBox ID="txtCompanyPhone" runat="server" Skin="WebBlue">
            </telerik:RadTextBox></td>
            <td>Phone:</td>
            <td><telerik:RadTextBox ID="txtOfficePhone" runat="server" Skin="WebBlue">
            </telerik:RadTextBox></td>
            <td style="width: 198px">Mobile</td>
              <td>
                  <telerik:RadTextBox ID="txtContactMobile" runat="server" Skin="WebBlue">
                  </telerik:RadTextBox></td>
          </tr>
          <tr valign="top">
            <td style="width: 160px">Fax:</td>
            <td>
                <telerik:RadTextBox ID="txtCompanyFax" runat="server" Skin="WebBlue">
                </telerik:RadTextBox></td>
            <td></td>
            <td></td>
            <td style="width: 198px">Email</td>
              <td>
                  <telerik:RadTextBox ID="txtContactEmail" runat="server" Skin="WebBlue" Width="192px">
                  </telerik:RadTextBox></td>
          </tr>
            <tr valign="top">
                <td style="width: 160px">
                    Website:</td>
                <td>
                    <telerik:RadTextBox ID="txtWebsite" runat="server" Skin="WebBlue" Width="193px">
                    </telerik:RadTextBox></td>
                <td>
                </td>
                <td>
                </td>
                <td style="width: 198px">
                    Contact Type:</td>
                <td>
                  <telerik:RadComboBox ID="cmbContactType" runat="server" Skin="WebBlue">
                      <CollapseAnimation Duration="200" Type="OutQuint" />
                  </telerik:RadComboBox>
              </td>
            </tr>
            <tr valign="top">
                <td style="width: 160px">
                    Ftpsite:</td>
                <td>
                    <telerik:RadTextBox ID="txtFtpsite" runat="server" Skin="WebBlue" Width="193px">
                    </telerik:RadTextBox></td>
                <td>
                </td>
                <td>
                </td>
                <td style="width: 198px">
                    Referral:</td>
                <td>
                  <telerik:RadComboBox ID="cmbReferal" runat="server" Skin="WebBlue">
                      <CollapseAnimation Duration="200" Type="OutQuint" />
                  </telerik:RadComboBox>
              </td>
            </tr>
            <tr valign="top">
                <td style="width: 160px">
                    Sales Rep:</td>
                <td>
                    <telerik:RadTextBox ID="txtSalesRep" runat="server" Skin="WebBlue" Width="193px">
                </telerik:RadTextBox></td>
                <td>
                </td>
                <td>
                </td>
                <td style="width: 198px">
                </td>
                <td>
                </td>
            </tr>
            <tr valign="top">
                <td style="width: 160px">
                    Sales Terms:</td>
                <td>
                    <telerik:RadTextBox ID="txtSalesTerms" runat="server" Skin="WebBlue" Width="193px">
                </telerik:RadTextBox></td>
                <td>
                </td>
                <td>
                </td>
                <td style="width: 198px">
                </td>
                <td>
                </td>
            </tr>
          <tr valign="top">
            <td style="width: 160px">Company Type:
            </td>
            <td><telerik:RadComboBox ID="cmbCompanyType" runat="server" Skin="WebBlue">
                    <CollapseAnimation Duration="200" Type="OutQuint" />
                </telerik:RadComboBox>
            </td>
            <td>&nbsp;</td>
            <td></td>
            <td style="width: 198px">&nbsp;</td>
              <td>
                  &nbsp;</td>
          </tr>
          <tr valign="top">
            <td style="width: 160px">&nbsp;</td>
            <td>&nbsp;</td>
            <td>&nbsp;</td>
            <td>&nbsp;</td>
            <td style="width: 198px">&nbsp;</td>
              <td>&nbsp;</td>
          </tr>
        </table>                           
       </telerik:RadPane>      
                               <telerik:RadSplitBar ID="SplitBar2" runat="server" CollapseMode="Both" />       
                                     
      </telerik:RadSplitter>
    </telerik:RadPane>            
  </telerik:RadSplitter>        
  </div>
    </form>
</body>
</html>
